/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayPayCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayPayCriteria create() {
		return new PayPayCriteria();
	}
	
	public static PayPayCriteria create(Column column) {
		PayPayCriteria that = new PayPayCriteria();
		that.add(column);
        return that;
    }

    public static PayPayCriteria create(String name, Object value) {
        return (PayPayCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_pay", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayPayCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayPayCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayPayCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayPayCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayPayCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayPayCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayPayCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayPayCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayPayCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayPayCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayPayCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayPayCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayPayCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayPayCriteria andPayPayIdIsNull() {
		isnull("pay_pay_id");
		return this;
	}
	
	public PayPayCriteria andPayPayIdIsNotNull() {
		notNull("pay_pay_id");
		return this;
	}
	
	public PayPayCriteria andPayPayIdIsEmpty() {
		empty("pay_pay_id");
		return this;
	}

	public PayPayCriteria andPayPayIdIsNotEmpty() {
		notEmpty("pay_pay_id");
		return this;
	}
       public PayPayCriteria andPayPayIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_pay_id", value, ConditionMode.EQUAL, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_pay_id", value, ConditionMode.NOT_EQUAL, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_pay_id", value, ConditionMode.GREATER_THEN, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_pay_id", value, ConditionMode.GREATER_EQUAL, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdLessThan(java.lang.Integer value) {
          addCriterion("pay_pay_id", value, ConditionMode.LESS_THEN, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_pay_id", value, ConditionMode.LESS_EQUAL, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_pay_id", value1, value2, ConditionMode.BETWEEN, "payPayId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayPayCriteria andPayPayIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_pay_id", value1, value2, ConditionMode.NOT_BETWEEN, "payPayId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayPayCriteria andPayPayIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_pay_id", values, ConditionMode.IN, "payPayId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayPayIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_pay_id", values, ConditionMode.NOT_IN, "payPayId", "java.lang.Integer", "Float");
          return this;
      }
	public PayPayCriteria andPayTypeIdIsNull() {
		isnull("pay_type_id");
		return this;
	}
	
	public PayPayCriteria andPayTypeIdIsNotNull() {
		notNull("pay_type_id");
		return this;
	}
	
	public PayPayCriteria andPayTypeIdIsEmpty() {
		empty("pay_type_id");
		return this;
	}

	public PayPayCriteria andPayTypeIdIsNotEmpty() {
		notEmpty("pay_type_id");
		return this;
	}
       public PayPayCriteria andPayTypeIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.NOT_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.GREATER_THEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.GREATER_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdLessThan(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.LESS_THEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.LESS_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_type_id", value1, value2, ConditionMode.BETWEEN, "payTypeId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayPayCriteria andPayTypeIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_type_id", value1, value2, ConditionMode.NOT_BETWEEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayPayCriteria andPayTypeIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_type_id", values, ConditionMode.IN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayPayCriteria andPayTypeIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_type_id", values, ConditionMode.NOT_IN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }
	public PayPayCriteria andParamIsNull() {
		isnull("param");
		return this;
	}
	
	public PayPayCriteria andParamIsNotNull() {
		notNull("param");
		return this;
	}
	
	public PayPayCriteria andParamIsEmpty() {
		empty("param");
		return this;
	}

	public PayPayCriteria andParamIsNotEmpty() {
		notEmpty("param");
		return this;
	}
        public PayPayCriteria andParamLike(java.lang.String value) {
    	   addCriterion("param", value, ConditionMode.FUZZY, "param", "java.lang.String", "Float");
    	   return this;
      }

      public PayPayCriteria andParamNotLike(java.lang.String value) {
          addCriterion("param", value, ConditionMode.NOT_FUZZY, "param", "java.lang.String", "Float");
          return this;
      }
      public PayPayCriteria andParamEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamNotEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.NOT_EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamGreaterThan(java.lang.String value) {
          addCriterion("param", value, ConditionMode.GREATER_THEN, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.GREATER_EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamLessThan(java.lang.String value) {
          addCriterion("param", value, ConditionMode.LESS_THEN, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamLessThanOrEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.LESS_EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("param", value1, value2, ConditionMode.BETWEEN, "param", "java.lang.String", "String");
    	  return this;
      }

      public PayPayCriteria andParamNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("param", value1, value2, ConditionMode.NOT_BETWEEN, "param", "java.lang.String", "String");
          return this;
      }
        
      public PayPayCriteria andParamIn(List<java.lang.String> values) {
          addCriterion("param", values, ConditionMode.IN, "param", "java.lang.String", "String");
          return this;
      }

      public PayPayCriteria andParamNotIn(List<java.lang.String> values) {
          addCriterion("param", values, ConditionMode.NOT_IN, "param", "java.lang.String", "String");
          return this;
      }
}